package com.zhiyun.service;

import com.zhiyun.domain.CourseContent;
import com.zhiyun.domain.CourseUnit;
import com.zhiyun.vo.CourseFile;
import com.zhiyun.vo.Result;

import java.util.List;

public interface CourseContentService {
    /**
     *
     * @param unitId
     * @return List<CourseContent>
     */
    public Result findByCourseUnitId(int unitId);

    /**
     *
     * @param courseContentId
     * @return courseFile
     */
    public Result getCourseContentFile(Integer courseContentId);
    /*
     * 参数 CourseContent
     * 返回
     * */
    //对一个单元添加内容(并且上传文件)
    public Result uploadCourseContent(CourseContent courseContent, CourseFile courseFile);
    //对一个单元删除内容
    public Result deleteContent(Integer courseContentId);
}
